<layout name='Layout/layout_page' />
<script type="text/javascript" src="<{:STATICS}>/js/jquery-passwordStrength.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	//密码强度
	var $pwd = $('input[name="password"]');					   
	$pwd.passwordStrength();
});
</script>
	<ol class="breadcrumb">
      	<li class="active">修改密码</li>
    </ol>

	<form id="ajaxForm" action="<{:U('User/password')}>" method="post" class="form-horizontal form-validata">
		<div class="form-group">
			<label class="col-md-1 control-label" for="usernames">原始密码：</label>
			<div class="col-md-5">
				<input type="password"
				class="form-control"
				name="oldpwd"
				data-rule-required="true" 
				data-rule-rangelength="[1,16]"
				/>
				<p>请输入您的原始密码</p>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="usernames">新密码：</label>
			<div class="col-md-5">
				<input type="password"
				class="form-control"
				name="password"
				id="password"
				data-rule-required="true" 
				data-rule-rangelength="[6,16]"
				/>
				<div id="passwordStrengthDiv" style="margin-top:5px;" class="is0"></div> 
				<p>请输入新密码，6-16个字符之间</p>
			</div>
		</div>
		<div class="form-group">
			<label class="col-md-1 control-label" for="usernames">重复密码：</label>
			<div class="col-md-5">
				<input type="password"
				class="form-control"
				name="repassword"
				data-rule-required="true" 
				data-rule-rangelength="[6,16]"
				data-rule-equalto="#password"
				/>
				<p>重复密码</p>
			</div>
		</div>
	
		<div class="form-group">
			<div class="col-md-11 col-sm-offset-1">
				<button type="submit" class="btn btn-info"><i class="icon-edit icon-white"></i> 修改密码</button>
			</div>
		</div>
		<input type="hidden" name="dosubmit" />
	</form>

